----------------------------------
-- Area: Sea Serpent Grotto
--   NM: Charybdis
-----------------------------------

require("scripts/globals/settings");

-----------------------------------
-- onMobDeath
-----------------------------------

function onMobDeath(mob,killer)

    -- Set Charybdis Window Open Time
    wait = math.random(28800,43200) -- 8-12 hours 
    SetServerVariable("[POP]Charybdis", os.time(t) + (wait /NM_TIMER_MOD));
    DeterMob(mob:getID(), true);

    -- Set PH back to normal, then set to respawn spawn
    PH = GetServerVariable("[PH]Charybdis");
    SetServerVariable("[PH]Charybdis", 0);
    DeterMob(PH, false);
    GetMobByID(PH):setRespawnTime(GetMobRespawnTime(PH));

end;